import { User } from "../../../modeal/user.js"
const user = new User()
Page({
  data: {
    recordList:{}, //兑换记录
  },
  onLoad: function () {
    this.getExchangeRecord()
  },

  onShow: function () {
  },

  // 获取兑换记录
  getExchangeRecord () {
    user.getExchangeList().then(res=>{
      this.setData({recordList:res})
    })
  }
})